<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
</head>
<body>
	<h1>Pridat novu sluzobnu cestu</h1>
	<?php
		if ( isset($error) ) { echo $error; }
		if ( !isset($hide_form) ){
			echo form_error('city');
			echo form_error('country');
			echo form_error('organization');
			echo form_error('date_of_arrival');
			echo form_error('date_of_departure');
			echo form_error('types[]');
			
			echo form_open('SluzobneCesty/add');
			echo '<p>'.form_label('Mesto*', 'city');
			echo 'city'.form_input('city',set_value('city')).'</p>';
			echo '<p>'.form_label('Štát*', 'country');
			echo 'country'.form_input('country',set_value('country')).'</p>';
			echo '<p>'.form_label('Organizácia*', 'organization');
			echo 'corganization'.form_input('organization',set_value('organization')).'</p>';
			echo '<p>'.form_label('Dátum príchodu*', 'date_of_arrival');
			echo 'date_of_arrival'.form_input('date_of_arrival',set_value('date_of_arrival')).'</p>';
			echo '<p>'.form_label('Dátum odchodu*', 'date_of_departure');
			echo 'date_of_departure'.form_input('date_of_departure',set_value('date_of_departure')).'</p>';
			echo '<p>'.form_label('What is your Name', 'username');
			echo 'Typ cesty:<br/>'.'odcestovany'.form_radio('types[]','odcestovani').
							  '<br/>pricestovany'.form_radio('types[]','pricestovani').'</p>';
			echo '<p>'.form_submit('submit', 'Pridať').'</p>';
			echo form_close();
		}
	?>
</body>
</html>